/**
 * @file ngmessagecoder.cpp
 * @author Suk Robert Koh (srkoh87z@gmail.com)
 */

#include "ngine/common/message/ngmessagecoder.h"

/**
 * Default constructor for NGMessageCoder class
 */
NGMessageCoder::NGMessageCoder(BYTE _frontCode, BYTE _endCode, BYTE _headerSize, BYTE _trailerSize, BOOL _doEncryption)
{
	frontCode = _frontCode;
	endCode = _endCode;
	headerSize = _headerSize;
	trailerSize = _trailerSize;
	doEncryption = _doEncryption;
}

/**
 * Destructor for NGMessageCoder class
 */
NGMessageCoder::~NGMessageCoder()
{
}

/**
 * Gets the size of the header
 *
 * @return	BYTE	Size of the header
 */
BYTE NGMessageCoder::getHeaderSize()
{
	return headerSize;
}

/**
 * Gets the size of the trailer
 *
 * @return	BYTE	Size of the trailer
 */
BYTE NGMessageCoder::getTrailerSize()
{
	return trailerSize;
}
